early version of getArgs