Add ns prefix and entity scope stack functions on the input abstraction
Include an environment structure in the continuations