add in realm support