added gpio trigger