added logging of options