added some extra SJQ checks, allow for missing SJQ library