refactor with luarocks