key_file name is taken from sys argv instead of hardcoded