cleaned up adlinktool