add target events, run algorithm and default r/w buffer api