adding error handling, adding 404 functional