added begin state for ctf:)