added intervalsystem and ratesystem with all its stuff (quite a lot)