changed back prepare to be compatible with pm2