take account of gps received and starting to regcognize type of msg
merge