map syncing to window & some other stuff
fixed dmatch