logging and options