added some bug fixes on gts and login