clean up and remove node-phantom dependency