added trigger options, test, docs