revise library loading