Cp working
Error handling for write swap failed and invalid VPN, assertion under a debug flag