restores global_data before calls to C functions- required