better scrap and bash script working