refined obstacle avoidance