move publish to CAS check