added usage for maptools coins (used in Carbone game for example) and
fixed getValid function