fix darwin and arm specifics