artifact encoding cleanup