small adjustments to app code.