fix for cross-platform