app-specific fixes and optimizations