initial API for AStar