cast system class, this should fix threading problem