settings changed, added log function and new test