added prepare flag to parameters