added debugging stuff