conf file and 404

conf file and 404 and some error checking