refactoring
native functions compile... now need to keep track of stack status and variable positions