non readline fixes