handle stdin or arg list