setup from tables