fixing various plotting stuff