allow string as stat name, minor fixes