bugfixes, added feature for repeated try on network error