cleanup publish command