added to register instance method for OpenFL