added initiatstate option