removes phantomenv