new modularisation of GLM preprocessing