fixed yamlinterface getCode