set profile before action