fixes cross-platform compatibiliy