make InputParser a little more type safe