initial commit of imstat script