add lint, fix possible conig bug