fix security warnings