improving terminal compatibility