add a prepare stage