library linking logic moved into framework utilities