modifications for cspkg upload