add check for unix