Clean: simplify some stics related variables New: introduce an interface for restput and restget for integer type variables