fixing error messages
hardcoding user agent header
minor fixes