change rp to lua format