imported functionality from master to set app configuration and get the current user