export some useful functions