ct to regular regex for compile speed boost
better url stuff (borrowed from cgi.d)