reduced code length of koji follow and fixed some bugs