better debug info
porting to g_io
fix type mistakes
input_callback functions must return gboolean