permission fixing and build updates