grow support for an attach() method (thanks @justinvdm)