cleanups, don't use iostreams for reading proc