status command needs to pass session object to needs_sync