fixed nested realm auth. cache config is now optional