optimizations and signal handling