fixed various issues with foreq; now compiles; untested