added link_type, and made sure scripts don't have a / in front of a single quote.