made a bunch of small fixes