small fixes related to resource uploading