fix bug in checking jointNames param and passing pids from file