dealing with obstacles