upgrade to injection of dep