added adapter interface for stored functions