is this a safe way of checking the version?