added array input for commands up till | mark