almost done call/cc implementation