handle prepended classes differently to normal ones