split GetAttach and GetAttachByType