fixed readline