initial setup from https://svn.science.uu.nl/repos/sci.dijks106.cco/libs