change var name and remove unnecessary path filter
move logger middleware up