modified inference libraries