debug and bootstrap