proper export of functions