fix
fix use of unlink
fix mac build