experimenting with log files and custom errors