created api to get latest
made check_version handle being ahead