realm resource and stuff