fixing issue with this context in dependency and plugin bootstrapping