removing ansistring, started uncommenting/rewriting some references to new extern functions