new method added for getPilot fromId