made app context configurable