first version for Table manager