minor bug in loading credentials fixed