updated libraries, adapted code, fixed reflection threadsafety issue
updated libraries, adapted code