added timeout to ghost parser