updating the library a bit to meet latest sdk modules and js features