replaced previous work with Deployd-based API