chaging to cred_file