add configure file support