major script rewrite, added mainline kernel compile