imprving security for Reflection handling