set default/debug modes and added log detail