support post-login

and support production configuration