modify for android and linux opotion