move more params to settings
log to file