fixes a few bugs, improves security