add intrinsics and implement goto