add some asserts in dynCall