fixed for UNIX system