add support for end time argument