fix markdown
cleanup
make it work transparently without sendfile