parse_coords is now more flexible on input type