minor update
add tablefactory