several optimizations for external signals