fixing minor terminal issues