updated to use static enginevars