plotting & state init fixed