appcontext setup funcs and signals