added wrapper_options argument to def input