e2 c style to lua style

as said in #358