[feature] port lua51 into lua