avoid complexity of reading from stdin