fix read-line not getting called