add switch statement to send server friendly version of duration