getting rid of couts in favor of msg facility functions