detachable improvements
merge detach into attach (so it needs only one binary)