debugged todo.php much more