add avoiding of obstacles