some work on the stack

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