base code working
added support for randomised user agent