added new function source_global_profile for #111