adjust scope for logged_in