using NULL instead of "" for environment extension