initial stack support
add tests for stack support