undoing refacting of composer code