updates to the new platform-api