fixed cgi issues. fixed path issues