adding the improved logger