working version of StatInst, a bit hackish though ...