workaround for elementtree exception (only takes str, not int)