cleanup boot-code