add extent routine to plugin
add extent routine to plugin