simplified error messages. started adding strict mode in server too