fix bug with library and credentials