added key file read in back