doing lua calls directly gives a slight speed improvement
removed unused lua::get_function function