added astar stuff