reorganize processing scripts, added unique_name option