add an utility function to make a nested dict shortly