inserted backtracking and conf file reading