more profiling. added more debug. added more todo.