start of the new stack implementation

Signed-off-by: Alexander Skjolden <alex@plastboks.net>