dislike stdin flush problems...