logic around tbl has its own file