improved OpenFL compatibility