remove if doing nothing
add missing winglob header
finish unmap handling