Revert "Revert "profile changes""

This reverts commit 185cba71671fb9e10557eee8e8f382436ac0dc4d.