updated submodule lain.
rc.lua: re-organized some code.