log errors in console, fix mobile crash