fixed http parsing issues