enable debug with -O0 and `err_exit' ; implement simple search of the first fitting place in one single file