updated for multiple certificate upload