add slate.post and slate.pre hooks