reduce code duplication
add vim modeline
prevent all but the final unknown host key warning