simplified/corrected interval and gap checks in load_ini