implemented for UNIX and Windows now