refactor and reformat rc.lua
update submodules