added msgtool script