add prpare to spring init