set up basic state system