in the middle of implementing terminal