added hasklib fallback