added initial class and realm support