fix quickfix buffer resize; update templates