added extractpass for html template