add object metadata using the HEADERS setting