moved table name construction to reader