changed terminal options so that it works more properly