Simplified enb config

Resolved #883 
consider using `switch`