quick fix to link gen