declare missing var
refactor md formatter
fix warning