adapt to better proposed trigger custom api