cross-platform fix