getinputs now accepts function pointers (in addition to function names)