fixed sevices with app id and key stored in variable