add simple platform guard to attributes