add loadprogram function
use new function
use new function