change post command into publish