first blocking version
using sendfile to send responses