added request parameters to the triggerPin function
changed server run mode