fixed preparer script