bespoke algorithms and other little bits