added getwaypoints