add param check for getAttachment