use fscanf in commands loader