fixed publish stuff