remove another generate
remove troublesome logs and fix pipe in async.series
adding check of undefined variable