modify program to be pluggable