updated 404 to work on subdirectories