Who needed guards and soldiers to protect their interests in the imperial court?