fixes for zcopy