fix compilation of some services, improve Interval