started debugger - needs work