downgrade framework version, remove redundant refs, sign