temp revert of the pull request to apply a true readonly nested api