change error handling regarding CL errors
add debug view