get rid of risky allocation, while a raw new is not preferable it's going to take some time to deal with the issues before we can move ownership to RAII