fix scanln, closes #6