added example nio upload and download handlers