tmp commit - major refactoring of stack; logger in progress;