avoid calls with undefined $Principal