adding application context setup funcs.