added support to get PIDs from pm2