multiex extended to handle any input type