update quark serial code