init and add wget function