added ability to manually set trigtime