adding session id to external apply