add process.pid
delete res/*.log
queue in js