recover stdin after usage