bpe with activity api