start of link contract generator