start using realm. lots of bug fixes