add max irigation timeout, fix empty pipe logic, fix pm validatin to the rest day