added astar and some cmd options