support arbitrary arguments to fake callback
simplify obstacles when segmenting grid