add prog macro

Works in jscl, but a prog form compiled on the host fails