handle everything on root path to be able to run as CGI script