changes for fork detach