lower kerina had effectively seceded , virtually forming a state within a state , making laws , raising taxes , and maintaining an army , while at the same time it proclaimed its allegiance to the wider kingdom and to its ruler .