added directory export generator and removed some logging