wait for required services before trying to use them

Change-Id: Ic54e945ee6fe469eb5de127b4d8bab9696896511