custom-preparator examples code