make end_time optional

fix issue #1