add log and exports