optimizes app for testability