added tablemanager. switched readTable interface