$class is no longer a magic global, we need to pull it from the args list