allow read input from command line for stack decoding