adding logger and some formatting