supporting detach
working
not yet tested properlly