add inputs support (fix #4)