added support for solaris