fixed lib loading