moved echo table functions into a separate file