Add replay plugin
same functionality as before, just split off