rename .action -> .when