allow reading from stdin
better handling of error position