external function calls are catched, but objects aren't. this causes stuff like cout to trigger unpaged error. probably just refactor the whole memory thing