debugging path and type errors. added rules to .htaccess that weren't there before