modifying objput.c to correctly handle console input