ca now detaches correctly