preparation scripts