parse arguments as appropriate types