better handling of single inputs