start of debuggin, incomplete