changed composer class

got it from willdurand