dirty cross-platform support