add check_for_updates function