add logic to profile build