- setup logging and config