refactor to use go-prompt