added revcation stuff and fixed a couple of bugs