fix email and build dest dir