fixed references
added realm
rename files