use IO::Handle to avoid error in LWP::UserAgent
Set index to zero for internal messages