moved applicationID as an external parameter