add (void*) typecast for callback return values