added parseGArgs