fixed environment issues.