finish porting basic bit frame work for redboot