added stack machine input generator