debugging and fixing up wget commands