mod: more setup code