working gradients and direct colocation