lib module version of tutorial fir, hacked