export functions used by python lib