properly profile steps

Issue: #14
Merge pull request #33 from metridoc/fix-logging-order

properly profile steps