bug fixed, dumping wrong variable
fix obstState and so