extend_scope