add quartz + spring func