duration can be specified in window.location.hash