replace LWP::Simple by LWP::UserAgent
switch from class methods to instance methods