updated to parse username and p/w from settings.json