fixed some more problems with libprog