added prebuild hook