turn clean_tags into a normal console script