put error logging back