add a replace command
add runghc option