change initialization of IoC
fix #30