all of the noblemen who had sworn allegiance to kotak and remained in the palace were to be questioned about their involvement , investigated for any crimes or treason , and then forced to swear a new oath of loyalty to king womba and his family .