fixed breaking'
changed prompting to work with both manual input and file input