use API interface for injection