added autoApplySessionPriority to api