debugged bootstrap