ading stuff. todo use duration and endTime instead of endMoment