read from stdin instead of args