initial working (and hopefully independent of my settings) version