extend lua sript by c