added callback in X11 module