more logging.
remove spaces from environment name.