web workers pull constants from main script
refactoring various loose ends