add some inject functions.