fixes main bugs in publishing method. removes post from repo