add funtion to get current os