maybe it can be better to use platform_family instead