refactor
refactor
no header added when credential is empty
get credential via environment variables