initialize function for backward compatibility with FlashCC export