adding statechart to handle the states during the setup process