logging around profile