add a fuction to duplicate block
add plugin