fixed warning messages, 404 error handling