fixed creds issue
modified to work with new creds technique