Hourglass c client

not sure about this printfs