work on preprare script