remove state, fix close bug
print where close open