add getCurrentTable method