added credentials setting.