use configure file instead of FILE (WRITE)