export functions better