improved error messages and enabled gzip