clean up logging
implement moving stacks