terminal fixes