fixes for p5terminal
fixes for p5terminal