more tweaks to appease the JavaScript/WebGL gods