finishing up terminal stuff