updated worker api for credit and file transfer