fix nohup bug; change -w mode