just a comment (don't need to address) but it's a good idea to use underscores to separate words in your variable names for better readability. It took me a few reads to understand `srcurl` as `source url`. a better var name is `src_url`.