working except api
work around for the di not working on apicontroller
use just leappender