add gps config and some misc changes