Revert "changed dstate to a string"

This reverts commit 0a5a4155e185109f41cf949091bad18f7a1e8080.