added affiliate support