fix configure, it should not rely on existing config
updated sample config