change the callback library from static to non static