remap the PIC, and update stdio coe