redraw using the current_cursor_position

* adding logging redirection
* stderr redirection