new API for mods