updated to allow options to input routines