fix decompose call and add compositions API call