added init to read credentials from the file