add set_commit_credentials method