maybe it is better to use the state interface rather than ins