update to work with updated contents api requirements