integrate the begin/end and have the plugins refresh from disk periodically