parse inputs of known types