use app context instead of service context