fixes a few quality bugs