add a facetrigger and fix some bugs