added error tracing to see issues