better logger. added headers in logger.