export debug fun