changed commandref; corrected InitFn