set_credential and linear debug