added file upload, fixed digital signature