sanmod, slowly updating old code