avoid console errors in browser