added some export functionality, a place for helper functions