attaching and detaching is working now