added support for nested keys on a user