Update for new modloader api