more work on resource uploading