make cgi stuff actually work