add custom logging