allow register arbitrary function to lua state