add unmap_client to nwm.h
add unmap-client and some hooks