added gem remotipart, fixed attach file