made tables package more flexible