Add workpath attribute to the program

this version would have some error