basic functionality for class injecting