closer to final version. something is wrong with the wget commands