stuff I started long ago and can hardly remember how it worked