getTable method updated: external handler added