added ffi prototypes
added cross response normalization (untested)
make test to old convention