generate garment ids
saveField, getField, fix test