added logging for method reflection