fix bug of escape, and add checks
do pre-installed version check