initialize global_scope properly