adding generate to automate scripts and refactoring linkify