try to move vars in to new handle_scope