added a parser for inputs
added a parser for inputs