added CGLIB support