more work in setup.c