resolve issue with EXC_BAD_INSTRUCTION in LibraryAPI class