configure in the right order