updated to handle longer device_ids
changed to post