adjusted to mapserver 6.4.1.