forgot to pass global_conf to loadapp() as well