dont log an exception in debug message
move state into views