set default loglevel = warn
add file option
add debug