further hardening of the js