fix configure script and dump file function