patched environment for cw