change the factory bean init