add delete methods in automatons, states, needs debug