udpated finalizer to not touch not java classes