error logging, not printing to screen