add specs
write log to logfile
support output log to file