improved gd
added LC_ALL