handle comments and shell syntax