calculate total durations immediately
rename 'active_resource' to 'rest'