fix platform dependendt stuff