hook preprocess entity on separate files