log errors instead of throwing