Add instance_prefix option

Also correct scoping for certain config options