Cowboy changed in a non backwirds compatable and undocumented way
so added code to fix this