fixes for p5terminal