automation with y flag