new fuip compiles

but need to change learning functions
to work with new signature
beginning of test written