minor changes to motif_chain_task.py