old stuff I don't remember
few fixes