corrected the segfault dued to the call of a simple new and domain specified deleter, need to find a way to go around that