add 'type' support for single-line inputs