add flag parameter to thrMaps to allow use with calS