setup canvas and context method observables, stack operations, and serialization