fixed logged in routines thing