cleaned up nested dict access