started adding popen commands to call wget