SI-5923 a simple alternative to onInfer