implemented full custom lib load