fix target folder creation
fix special tokens replacing