small bugfixes ... now it works up to the point where it writes a pool file for stopos submission