added on-the-fly credential fetching from user-agent