WIP - fixing publishAs issues