logger added
logging middleware added