move config data to separate files; fix problem where useragent header was not set