start work on attach-detach