better handling of epochs
cast start/end params to int