app testing, debug bar, and some optimizations