adapting plugin

adding beginAcq and endAcq functions