fixed various issues with foreq; now compiles; untested
CV authors