updated mobile to use env in config