added customized rc.lua & removed unused stuff