changes resource format to map instead of list