what is this for? just dumping state to stderr?