fixed 404 implementation and directory listing