some small improvements on error displaying