profile: started profile refactor