fixed problem with handling multiple input output formats
allow for more input types