optionally read in keys file