fixed some os dependency