deal with IO errors
add a scroll bar in modal code window