better handling of multiple platforms and devices