start, end are longs; fixes #9