fixed return in cli and fixed loading of id values for xml (convert to int)