add both branches to the only_path conditional