fixes bug with text input, changed source from argv to user input