debug errors and object binding