fixed missing imports
only enable snmp server if needed