update Phoenix preprocess for modularization