How to circumvent an obstacle