added p4 availability checks on some actions