removed panics from core. Added reflection for go function interop.