added UNIX socket support