added configure option, first draft anyway