gs
added solaris support