always copy iovec and added more debug messages