process flow for storage
another fix for logouts