added callback to 'attach'
updated for minioc-loader changes
rolled version