moved some methods into jacquard_utils.py