add ability to pass in fields for client table