optimized cross-plattform compatibility