Disabled ssl check on EPIC PID call, minor refactoring