improve input recognition

No need to specify the input type anymore