make credential filename part of constructor