bugfixes for xpost.