improved the scripts. automated partial pipeline