make backwards compatible with old emerald