automation of platform detection