moved devcredentials to the factory constructor