Adapted durden to work with cowboy 0.8.2