fixes: returning json parsing, error messages, yaml header offsets