However , soon after PERSON@1 khan realized that in order to secure himself and his newly-established khanate from external threats , and especially from the invasions from LOCATION@1 , he needed to build a new more reliable castle .

However , soon afterwards PERSON@1 khan realized that in order to secure himself and his newly-established khanate from external threats , and especially from the invasions from LOCATION@1 , he needed to build a new more reliable castle .
