fixing checks against config["publish"]

fixes #62