fix tons of stuff following PDF instructions