adding google attach and detach