finished first implementation of the stack support, next gui support