planPath
adapt planPath for new interface