implemented conio module as an independent one