add refreshScreen, fix subprocess for centos