more fancy top_level_scopes function call