port belugademo to the new trigger / metadata system