injecting dependencies (ish)