replaced smartinput with auto-pairs