FIX: harden esp-input