added rudementary dependency injection container support.