prepare_options_for_module