added unload callback; support for translations