add a preprocess method with its own policy
refactor the unity configuration into separate classes