added 404 handling middleware
added loggin middleware