added --waitretry, new function mget_millisleep()