better support for global_params