add function to get application ID