added IoC way of configuring of  runcible