use :platforms option instead of if statement