added command checking to PID loader