add method for tailing based on custom trigger