added metadata to logging