fixed cat command and minor adjustments