fixed for latest rust
fixed intervalsystem and added some warnings